﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace SIS_Wcf_Server.Model
{
    public class RestInformationsData
    {


        public RestInformationsData()
        {
            this.InformationsData = new InformationsData();
        }

        public int id
        {
            get
            {
                return this.InformationsData.Id;
            }
            set
            {
                this.InformationsData.Id = value;
            }
        }

        public string Type
        {
            get
            {
                return this.InformationsData.Type;
            }
            set
            {
                this.InformationsData.Type = value;
            }
        }

        public DateTime ValidUntil
        {
            get
            {
                return DateTime.MaxValue;
            }
            set
            {
                // Active ignore.
            }
        }

        public string Data
        {
            get
            {
                return this.InformationsData.Data;
            }
            set
            {
                this.InformationsData.Data = value;
            }
        }

        public String Description
        {
            get
            {
                return this.InformationsData.Beskrivelse;
            }
            set
            {
                this.InformationsData.Beskrivelse = value;
            }
        }


        [IgnoreDataMember]
        public InformationsData InformationsData { get; set; }
        
        public List<Tags> Tags { get; set; }
    }
}